﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using AjaxChatService.GTalkMessenger;
using AjaxChatService.Models;

namespace AjaxChatService.Controllers
{
    public class GTContactsController : ApiController
    {
        // GET api/gtcontacts
        public IEnumerable<GTContact> Get()
        {
            System.Threading.Thread.Sleep(1000 * 10);

            List<GTContact> contacts = XmppClientConnections.contacts;
            //XmppClientConnections.contacts = new List<FBContact>();
            return contacts;
        }

        // GET api/gtcontacts/5
        public string Get(int id)
        {
            return "value";
        }

        // POST api/gtcontacts
        public void Post([FromBody]string value)
        {
        }

        // PUT api/gtcontacts/5
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE api/gtcontacts/5
        public void Delete(int id)
        {
        }
    }
}
